'use strict';

module.exports = app => {
    const {
        STRING,
        INTEGER
    } = app.Sequelize;
    const course_manage = app.model.define('course_manage',{
        id:{
            type:INTEGER,
            primaryKey:true,
            autoIncrement:true,
            allowNull:false,
            comment:"课程管理ID"
        },
        class_name:{
            type:STRING,
            defaultValue:null,
            comment:"班级"
        },
        group_name:{
            type:STRING,
            defaultValue:null,
            comment:"分组名称"
        },
        course_name:{
            type:STRING,
            defaultValue:null,
            comment:"课程名称"
        },
        course_state:{
            type:STRING,
            defaultValue:null,
            comment:"课程状态"
        }
    })
    course_manage.associate = function () {
        
    }
}